<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话：{{phoneNum}}(点击拨打)</view>
			<view>联系地址：河北省廊坊市永清县北于今村</view>
		</view>
		<!-- enable-satellite="true" -->
		<map class="map" :latitude="latitude" :longitude="longitude" :scale="scale" enable-satellite="true" :markers="makers"></map>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				latitude: 38.005673,
				longitude: 114.731876,
				scale: 15,
				makers: [{
					latitude: 38.005673,
					longitude: 114.731876,
					iconPath: '../../static/李冰洋.jpg',
					width: 30,
					height: 30
				}],
				phoneNum:15076319538
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:this.phoneNum+''
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}
	}

	.info {
		padding: 10rpx 20rpx;
		font-size: 30rpx;

		view {
			line-height: 80rpx;
			border-bottom: 2rpx solid #eee;
		}
	}

	.map {
		width: 750rpx;
		height: 750rpx;
	}
</style>
